/*
 * @(#) BaseInterService.java 2013-6-21 下午3:38:58
 *
 * Copyright 2013 Rockwell Automation, Inc. All rights reserved.
 * Rockwell Automation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package com.osi.mes.inter;

import pnuts.lang.Context;

import com.datasweep.compatibility.pnuts.Functions;
import com.osi.mes.base.BaseService;

public class BaseInterService extends BaseService implements IInterConstants
{

	public BaseInterService(Context context)
	{
		super(context);
	}
	
	public BaseInterService(Functions functions)
	{
		super(functions);
	}

	public String toSendXML(String xml)
	{
		String[] strs = xml.split("<xml>");
		xml = strs.length == 2?strs[1]:strs[0];
		xml = xml.substring(0,xml.lastIndexOf("</xml>"));
		return xml;
	}
}
